---
title: Document.LockServerFile Method (Word)
keywords: vbawd10.chm158007805
f1_keywords:
- vbawd10.chm158007805
ms.prod: word
api_name:
- Word.Document.LockServerFile
ms.assetid: 0e9d6d4d-0f07-d815-207e-3a1c73f8c7e7
ms.date: 06/08/2017
---


# Document.LockServerFile Method (Word)

Locks the file on the server preventing anyone else from editing it.


## Syntax

 _expression_ . **LockServerFile**

 _expression_ An expression that returns a **[Document](document-object-word.md)** object.


## Remarks

This method applies only to documents stored on a server running Microsoft Office SharePoint Server 2007.


## See also


#### Concepts


[Document Object](document-object-word.md)

